﻿@model RoleView

<div class="col-xs-12">
    <div class="widget-box readonly">
        <div class="widget-header">
            <span class="widget-header-icon fa fa-th-list"></span>
            <h5>@Headers.Role</h5>
            <div class="widget-header-buttons">
                @if (Html.IsAuthorizedFor("Edit"))
                {
                    <a class="btn" href="@Url.Action("Edit", new { Model.Id })">
                        <i class="fa fa-pencil"></i><span class="text">@Actions.Edit</span>
                    </a>
                }
                @if (Html.IsAuthorizedFor("Delete"))
                {
                    <a class="btn" href="@Url.Action("Delete", new { Model.Id })">
                        <i class="fa fa-times"></i><span class="text">@Actions.Delete</span>
                    </a>
                }
            </div>
        </div>
        <div class="widget-content">
            <div class="form-group">
                <div class="control-label col-xs-12 col-md-3 col-lg-2">
                    @Html.FormLabelFor(model => model.Title)
                </div>
                <div class="control-content col-xs-12 col-md-9 col-lg-5">
                    @Html.FormTextBoxFor(model => model.Title)
                </div>
            </div>
            <div class="form-group">
                <div class="control-label col-xs-12 col-md-3 col-lg-2">
                    @Html.FormLabelFor(model => model.Permissions)
                </div>
                <div class="control-content col-xs-12 col-md-9 col-lg-5">
                    @Html.JsTreeFor(model => model.Permissions)
                </div>
            </div>
        </div>
    </div>
</div>
